<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes mav {
            0% {
                transform: translate(0) rotate(0) scale(1);
            }

            25% {
                transform: translate(20px, 100px) rotate(140deg) scale(1.2);
                background-color: #e234;
            }

            50% {
                transform: translate(100px, 300px) rotate(240deg) scale(1.5);
                background-color: #cc3;
            }

            75% {
                transform: translate(230px, 4800px) rotate(600deg) scale(1.8);
            }

            100% {
                transform: translate(0) rotate(0) scale(1);
                background-color: #f99;
            }
        }

        div {
            animation: mav 20s 10s 3 iteration-count direction fill-mode;
            width: 200px;
            height: 200px;
            background-color: #f33;
            animation-name: mav;
            animation-duration: 20s;
        }

        diV:hover {
            animation-play-state: paused;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>